package bancosys.tec.job;

import jmine.tec.batch.context.BatchExecutionContext;

/**
 * @created May 26, 2006
 * @author Gustavo Almeida
 */
public interface Job extends java.io.Serializable {

    /**
     * Executa o job.
     * 
     * @param context o contexto do kernel.
     * @throws JobExecutionException caso ocorra algum erro ao executar o job.
     */
    void execute(BatchExecutionContext context) throws JobExecutionException;

    /**
     * Devolve o id do job.
     * 
     * @return o id do job.
     */
    long getId();
}
